<?php

namespace app\api\controller;

use think\Controller;

class Common extends Controller
{
    protected $middleware = ['AuthMiddleware'];
    public $page = 1;
    public $limit = 10;

    protected function returnJson($code = 200, $msg = '', $data = null)
    {
        return json(['code' => $code, 'msg' => $msg, 'data' => $data]);
    }
}
